﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyCommon;

namespace DataAccessLayer.DataInterfaces
{
    public interface INguoiDung
    {
        IEnumerable<NguoiDung> GetAllNguoiDung();
        NguoiDung GetNguoiDungByUsername(string inUsername);
        IEnumerable<NguoiDung> GetAllNguoiDungChuaSuDung();
        bool IsUsernameExist(string inUsername);
        bool IsPwdMatch(string inUsername, string inPwd);
        bool IsActiveAccount(string inUsername);
        NguoiDung GetNguoiDungById(int Id);
        NguoiDung GetLastRecord();
        bool UpdateNguoiDung(NguoiDung NguoiDung);
        bool InsertNguoiDung(NguoiDung NguoiDung);
        ReturnValue<bool> DelNguoiDung(int Id);
        ReturnValue<bool> DelNguoiDung(NguoiDung NguoiDung);
        IEnumerable<VaiTro> GetAllVaiTro();
    }
}
